<div class="main_top">
  <h2>薪资管理</h2>
</div>

<div class="details">
  <div class="list_table salary_list_table">
    <%= hidden_field_tag :authenticity_token, form_authenticity_token, id: 'js-ems-store-salaries-update' %>
    <%= render "search_form" %>
    <%= render "items" %>
  </div>
  <div class="check-account-area js-show-check-salary-area">
    <!-- <%= render 'check_salary' %> -->
  </div>
</div>

<%= content_for :pre_assets do %>
  <script type="text/javascript">
    $(document).ready(function(){
      var total = 0
      $("tr.js-salary-item-tr").each(function(item){
        var amount = parseFloat($(this).children().eq(11).text());
        total += amount
      })
      $("span.js-to-show-amount").text(total);
    })
  </script>
<% end %>
